<?php
$shop="zho中文 33";
$address="z中文";
$name="中文";
$phone="中文";
$aaa=sprintf("insert into gongzhonghao(shop,address,`name`,phone)values('%s','%s','%s','%s')",$shop,$address,$name,$phone);
//echo $aaa;
//exit();

$mysqli = new mysqli("127.0.0.1", "root", "aaa123", "ecjia");
if (mysqli_connect_errno()){
  die(sprintf("[%d] %s\n", mysqli_connect_errno(), mysqli_connect_error()));
}
$mysqli->query("SET NAMES utf8");
if (!($res=$mysqli->query($aaa))) {
 die(sprintf("[%d] %s\n", $mysqli->errno, $mysqli->error));
}
$mysqli->close();


echo "提交成功";

